#ifndef RECORD_H
#define RECORD_H

#include <iostream>
#include <string>

const int NAME_LEN = 32;  // name字段固定长度
const int DESC_LEN = 64;  // desc字段固定长度

class Record {
public:
    int id;
    std::string name;
    std::string desc;

    Record() : id(0), name(""), desc("") {}

    Record(int _id,std::string _name,std::string _desc)
        : id(_id), name(_name), desc(_desc) {}

    inline void print() const {
        std::cout << "Record { "
                << "id: " << id << ", "
                << "name: \"" << name << "\", "
                << "desc: \"" << desc << "\" }"
                << std::endl;

    }

    // todo other members and methods.
};

#endif // RECORD_H